import request from "@/utils/request";

// 配置tab集合
export function getConfigArr() {
  return request({
    url: `/mgmt/configuration/available`,
    method: "get",
  });
}

// 查询对应tab的信息
export function configMsg(configurationType) {
  return request({
    url: `/mgmt/configuration/${configurationType}`,
    method: "post",
  });
}

// 增加配置
export function addConfig(data) {
  return request({
    url: "/mgmt/configuration",
    method: "post",
    data,
  });
}

// 修改配置
export function editConfig(data) {
  return request({
    url: "/mgmt/configuration",
    method: "put",
    data,
  });
}

// 删除配置
export function deleteConfig(data) {
  return request({
    url: `/mgmt/configuration`,
    method: "delete",
    data,
  });
}
